// Prevents additional console window on Windows in release, DO NOT REMOVE!!
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]

use rich_data_lib::common::logger::setup_logging;
use rich_data_lib::db::connector::initialize_databases;

#[tokio::main]
async fn main() {
    // 初始化日志
    if let Err(e) = setup_logging() {
        eprintln!("Error initializing logger: {:?}", e);
    }
    // 初始化数据库
    initialize_databases().await;
    // 测试创建一条数据
    // create_project().await;
    // 运行应用
    rich_data_lib::run()
}
